import request from '@/utils/request'

// 查询分类管理列表
export function listDataClassification(query) {
  return request({
    url: '/dataClassification/dataClassification/list',
    method: 'get',
    params: query
  })
}

// 查询分类管理详细
export function getDataClassification(classificationId) {
  return request({
    url: '/dataClassification/dataClassification/' + classificationId,
    method: 'get'
  })
}

// 新增分类管理
export function addDataClassification(data) {
  return request({
    url: '/dataClassification/dataClassification',
    method: 'post',
    data: data
  })
}

// 修改分类管理
export function updateDataClassification(data) {
  return request({
    url: '/dataClassification/dataClassification',
    method: 'put',
    data: data
  })
}
// 分配用户
export function editDataClassificationUser(data) {
  return request({
    url: '/dataClassification/dataClassification/editDataClassificationUser',
    method: 'put',
    data: data
  })
}

// 删除分类管理 (放入回收站)
export function delDataClassification(classificationId) {
  return request({
    url: '/dataClassification/dataClassification/' + classificationId,
    method: 'delete'
  })
}
// 删除分类管理
export function sureDelDataClassification(classificationId) {
  return request({
    url: '/dataClassification/dataClassification/physics/' + classificationId,
    method: 'delete'
  })
}
